<template>
  <div>
    <h1>View One</h1>
    <h1>这个页面主要是体现路由的组件挂载时机</h1>
    <h1>控制台查看路由组件的挂载时机</h1>
  </div>
</template>

<script lang="ts" setup>
import {onMounted,onUnmounted} from 'vue'

onMounted(()=>{
  console.log('one组件挂载了')
})
onUnmounted(()=>{
  console.log('one组件卸载了')
})

</script>

<style scoped>
</style>
